package com.xingkeduo.business.user.socket;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chi  2019-05-24 20:54
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebsocketMessageResponse<T> {

    /**
     * 发送类型
     */
    private MessageTypeEnum messageTypeEnum;
    /**
     * 门店id
     */
    private String storeId;
    /**
     * 数据
     */
    private T data;


    public enum  MessageTypeEnum {
        //下单屏登陆
        LOGIN,
        //叫号
        ANNOUNCE_NUMBER,
        //优惠券
        MARKETING,
        //库存相关
        WORKPAD
    }
}
